-- GENERATED SPELL FOR [Stillpine Ancestor Tikti] --


function spell0_17392(pUnit, Event) --@Elemental Spawn-in,Self--
pUnit:FullCastSpellOnTarget(25035,pUnit)
pUnit:RegisterEvent('Sorts_17392', 609, 1)
end

function spell1_17392(pUnit, Event) --@Embrace of the Serpent,n/a--
pUnit:FullCastSpellOnTarget(30430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17392', 533, 1)
end

function Sorts_17392(pUnit, Event)
local choix_sorts_17392 = math.random(0, 1)
if choix_sorts_17392 == 0 then
pUnit:RegisterEvent('spell0_17392', 1, 1)
end
if choix_sorts_17392 == 1 then
pUnit:RegisterEvent('spell1_17392', 1, 1)
end
end

function mob17392_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17392', math.random(1500, 3000), 1)
end

function mob17392_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17392_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17392_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17392, 1, 'mob17392_Action')
RegisterUnitEvent(17392, 2, 'mob17392_Leave')
RegisterUnitEvent(17392, 3, 'mob17392_Kill')
RegisterUnitEvent(17392, 4, 'mob17392_Die')
